The four occupants of the second car have all been taken to Cavan General Hospital to be treated for non-life threatening injuries.